// ConfigFileParser.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Config.h"

int main(int argc, char* argv[])
{
    string conffile = "Config.txt";
    if (1 < argc )
    {
        conffile = argv[1];
    }   
    Config cfg(conffile);
    bool bStat = false;   

    int iVal = 8;
    bStat = Config::GetValue("CServerId", iVal);
    cout << "Return code " << bStat <<" CServerId " <<  iVal <<endl;
    string strval;
    bStat = Config::GetValue("LogFile", strval);
    cout<< "Return code " << bStat <<" LogFile " <<  strval <<endl;
    bStat = Config::GetValue("CServerIPAddress", strval);
    cout<< "Return code " << bStat <<" CServerIPAddress " << strval <<endl;  
    bool bReturnVal = false;
    bStat = Config::GetValue("AchintyaFilePersistance_1", bReturnVal);
    cout<< "Return code " << bStat <<" AchintyaFilePersistance_1 " << bReturnVal <<endl;    
    return EXIT_SUCCESS;
}

